package com.suxin.thread.schedule.domain;

/**
 * @author Tang
 * @classname TaskStatus
 * @description [  ]
 * @date 2021/3/16 20:34
 */
public enum TaskStatus {

    /**
     * 待运行
     */
    WAITING(0, "待运行"),
    /**
     * 运行中
     */
    RUNNING(1, "运行中"),
    /**
     * 运行成功
     */
    SUCCESS(2, "成功"),
    /**
     * 运行失败
     */
    FAILED(3, "失败");

    private int code;

    private String message;

    TaskStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
